STEP 11: We found the sum of the numbers and the number of values, so we can use our program to find the mean!

Remember, we find mean by dividing the total sum of all values by the number of values in the set.

  • In LOGIC, go to and drag in Integer Variable to the bottom of your code.
  • Change my_var to my_mean.
  • Change the 25 to the right of the equals sign to this: total/num_values.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)